package com.book.business.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @Author: 盛佳帅
 * @Description:  20173953
 */

@Data
@Accessors(chain = true)
@TableName("business_indent")
public class BookIndent {
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @TableField("username")
    private String username;

    @TableField("phone")
    private String phone;

    @TableField("address")
    private String address;

    @TableField("bookname")
    private String bookname;

    @TableField("pubid")
    private String pubid;

    @TableField("type")
    private String type;

    @TableField("bookmoney")
    private Integer bookmoney;

    @TableField("message")
    private String message;

    @TableField("number")
    private Integer number;

    @TableField("money")
    private Integer money;

    @TableField("onetime")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date onetime;

    @TableField("finishtime")
    private String finishtime;

    @TableField("status")
    private String status;

    @TableField("flag")
    private String flag;

    @TableField("pay")
    private String pay;

    @TableField("omit")
    private String omit;

    @TableField("year")
    private String year;

    @TableField(value = "month")
    private String month;

    @TableField(exist = false)
    private String backmessage;

    //图书状态
    @TableField("backstatus")
    private String backstatus;

    @TableField("bookindentid")
    private String bookindentid;

    @Version
    @TableField("version")
    private Integer version;

}
